package com.yuanrui.auth.application.convert;

import com.yuanrui.auth.entity.AuthUserDTO;
import com.yuanrui.auth.domain.entity.AuthUserBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 用户信息转换器
 */
@Mapper
public interface AuthUserConverter{
    AuthUserConverter INSTANCE = Mappers.getMapper(AuthUserConverter.class);
    //将用户信息BO转换为用户信息DTO
    AuthUserDTO convert(AuthUserBO authUserBO);

    //将用户信息DTO转换为用户信息BO
    AuthUserBO convert(AuthUserDTO authUserDTO);

    List<AuthUserDTO> convert(List<AuthUserBO> authUserBOList);
}
